package com.hzit.loan.manager.controlller;

import com.hzit.loan.manager.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class TestController {

    int a = 0; //

    @Autowired
    private TestService testService;

    @RequestMapping("/test")
    public String test(){

        String xxlName = testService.queryXxlJob(); //查询 xxl_job库

        String mchName = testService.queryPayWeb(); //查 pay_web库

        String userName = testService.queryUser();


        return "xxlName = "+ xxlName + ",mchName = " + mchName + ",userName = " + userName;

    }


}
